/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dk.rofl.maps;

import dk.rofl.items.Equipment;
import dk.rofl.units.Monster;

/**
 *
 * @author menderleit
 */
public class MapCell {
    
    private int tileNum;
    private boolean collision;
    private boolean visible;
    private Equipment item;
    private Monster monster;
    
    // Constructor
    public MapCell() {
        tileNum = -1;
        collision = false;
        visible = false;
        item = null;
        monster = null;
    }
    
    public void placeMonster(Monster monster) {
        this.monster = monster;
    }
    
    public void removeMonster() {
        this.monster = null;
    }
    
    public Monster getMonster() {
        return monster;
    }
    
    public void placeItem(Equipment item) {
        this.item = item;
    }
    
    public void removeItem() {
        this.item = null;
    }
    
    public Equipment getItem() {
        return item;
    }
    
    public void setTileNum(int tileNum) {
        this.tileNum = tileNum;
    }
    
    public int getTileNum() {
        return tileNum;
    }
    
    public void setCollision(boolean coll) {
        this.collision = coll;
    }
    
    public boolean getCollision() {
        return collision;
    }
    
    public void setVisible(boolean vis) {
        this.visible = vis;
    }
    
    public boolean getVisible() {
        return visible;
    }
}
